<html>
 <head>
  <link href="./leetcode-problem.css" rel="stylesheet" type="text/css">
 </head>
 <body>
  <div class="question_difficulty">
   难度：Medium
  </div>
  <div>
   <h1 class="question_title">
    194. Transpose File
   </h1>
   <p>
    Given a text file
    <code>
     file.txt
    </code>
    , transpose its content.
   </p>
   <p>
    You may assume that each row has the same number of columns and each field is separated by the
    <code>
     ' '
    </code>
    character.
   </p>
   <p>
    <strong>
     Example:
    </strong>
   </p>
   <p>
    If
    <code>
     file.txt
    </code>
    has the following content:
   </p>
   <pre>
name age
alice 21
ryan 30
</pre>
   <p>
    Output the following:
   </p>
   <pre>
name alice ryan
age 21 30
</pre>
   <p>
    &nbsp;
   </p>
  </div>
  <div>
   <h1 class="question_title">
    194. 转置文件
   </h1>
   <p>
    给定一个文件&nbsp;
    <code>
     file.txt
    </code>
    ，转置它的内容。
   </p>
   <p>
    你可以假设每行列数相同，并且每个字段由&nbsp;
    <code>
     ' '
    </code>
    分隔.
   </p>
   <p>
    <strong>
     示例:
    </strong>
   </p>
   <p>
    假设&nbsp;
    <code>
     file.txt
    </code>
    &nbsp;文件内容如下：
   </p>
   <pre>name age
alice 21
ryan 30
</pre>
   <p>
    应当输出：
   </p>
   <pre>name alice ryan
age 21 30
</pre>
  </div>
 </body>
</html>